package com.cloud.feign;

import com.cloud.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author root
 * @description TODO
 * @date 2020/11/28 11:37
 */
@FeignClient(name = "nacos-user")
public interface UserFeign {

    @RequestMapping(method = RequestMethod.POST, value = "/user/update")
    JsonResult update(@RequestParam("money") Long money, @RequestParam ("userId") Long userId);
}
